home *** CD-ROM | disk | FTP | other *** search
/ IRIX Installation Tools & Overlays 2002 November / SGI IRIX Installation Tools & Overlays 2002 November - Disc 4.iso / dist / motif21_dev.idb / usr / Motif-2.1 / include / Xm / DialogSavvyT.h.z / DialogSavvyT.h
C/C++ Source or Header  |  2002-10-15  |  2KB  |  57 lines

  1. /* $XConsortium: DialogSavvyT.h /main/5 1995/07/15 20:50:29 drk $ */
  2. /*
  3.  *  @OSF_COPYRIGHT@
  4.  *  COPYRIGHT NOTICE
  5.  *  Copyright (c) 1990, 1991, 1992, 1993 Open Software Foundation, Inc.
  6.  *  ALL RIGHTS RESERVED (MOTIF). See the file named COPYRIGHT.MOTIF for
  7.  *  the full copyright text.
  8.  */
  9. /*
  10.  * HISTORY
  11.  */
  12. #ifndef _XmDialogSavvyT_H
  13. #define _XmDialogSavvyT_H
  14.  
  15. #include <Xm/Xm.h>
  16.  
  17. #ifdef __cplusplus
  18. extern "C" {
  19. #endif
  20.  
  21. externalref XrmQuark XmQTdialogShellSavvy;
  22. /* This trait also requires a resource named "defaultPosition".
  23.    If the child has the trait, the resource will be get and set by 
  24.    the DialogShell ChangeManaged */
  25.    
  26. /* Trait structures and typedefs, place typedefs first */
  27.  
  28. typedef void (*XmDialogSavvyMapUnmapProc)(Widget wid, 
  29.                       Boolean map_unmap);
  30.  
  31.  
  32. /* Version 0: initial release. */
  33.  
  34. typedef struct _XmDialogSavvyTraitRec     {
  35.   int                version;        /* 0 */
  36.   XmDialogSavvyMapUnmapProc callMapUnmapCB;
  37. } XmDialogSavvyTraitRec,*XmDialogSavvyTrait;
  38.  
  39.  
  40. /* This macro is part of the trait and is used for the following situation
  41.    DialogShells always mimic the child position on themselves.
  42.    If the SetValues on a bb child position was 0,
  43.    which is always the _current_ position of the bb in a DialogShell,
  44.    Xt does not see a change and therefore not trigerred a geometry request.
  45.    So BB (or any dialogShellSavvy child) has to catch this case
  46.    and change the position request to use a special value in its
  47.    SetValues method, XmDIALOG_SAVVY_FORCE_ORIGIN, to notify the Dialog that 
  48.    it really wants to move in 0 */
  49.  
  50. #define XmDIALOG_SAVVY_FORCE_ORIGIN ((Position)~0L)
  51.  
  52. #ifdef __cplusplus
  53. }  /* Close scope of 'extern "C"' declaration which encloses file. */
  54. #endif
  55.  
  56. #endif /* _XmDialogSavvyT_H */
  57.